package bpm.service.impl.user;

import java.util.List;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import bpm.dao.user.OrgGroupTypeDao;
import bpm.domain.user.OrgGroupType;
import bpm.service.user.OrgGroupTypeService;
@Service("orgGroupTypeService")
@Transactional
public class OrgGroupTypeServiceBean implements OrgGroupTypeService {
	@Resource
	private OrgGroupTypeDao orgGroupTypeDao;
	private Logger logger=Logger.getLogger(OrgGroupTypeServiceBean.class);
	public void updateGroupType(OrgGroupType groupType) {
		this.orgGroupTypeDao.update(groupType);
	}
	@Transactional(propagation=Propagation.NOT_SUPPORTED)
	public List<OrgGroupType> findAllGroupType() {
		return this.orgGroupTypeDao.findAll();
	}
	public void insertGroupType(OrgGroupType orgGroupType) {
		logger.debug(orgGroupType);
		this.orgGroupTypeDao.insert(orgGroupType);
	}

}
